//相位数组信息
import 'package:json_annotation/json_annotation.dart';

part 'vehicle.g.dart';

@JsonSerializable()
class Vehicle {
  int vehicle_type;
  String vehicle_id;
  double head;
  double longitude;
  double latitude;
  double altitude;
  double speed;
  double? accuracy;
  String? plateNumber;
  int? brake_flag;
  int? turn_light;
  int? emergency_light;
  Vehicle(
      this.vehicle_type,
      this.vehicle_id,
      this.head,
      this.longitude,
      this.latitude,
      this.altitude,
      this.speed,
      this.accuracy,
      this.plateNumber,
      this.brake_flag,
      this.turn_light,
      this.emergency_light);
  factory Vehicle.fromJson(Map<String, dynamic> json) =>
      _$VehicleFromJson(json);
  Map<String, dynamic> toJson() => _$VehicleToJson(this);
}
